explicit cast造句
例句與造句
- However , an explicit cast is needed to convert from
類型到整型的轉(zhuǎn)換需要用顯式類型轉(zhuǎn)換來完成。 - Instead the expression must include an explicit cast operation
相反,表達(dá)式必須包含顯式轉(zhuǎn)換操作。 - For example , the following statement will produce a compilation error without an explicit cast
例如,不使用顯式類型轉(zhuǎn)換時(shí),下列語句將產(chǎn)生編譯錯(cuò)誤: - You can never cast objects of sibling classes ( sharing the same parent ) , even with an explicit cast
你永遠(yuǎn)不可能轉(zhuǎn)化具有同一個(gè)超類的類的對(duì)象,即使是刻意轉(zhuǎn)化。 - For example , the following statement generates a compiler error unless an explicit cast is used
例如,除非使用顯式強(qiáng)制轉(zhuǎn)換,否則以下語句將生成一個(gè)編譯器錯(cuò)誤: - It's difficult to find explicit cast in a sentence. 用explicit cast造句挺難的
- Variable have incompatible data types , the expression requires an explicit cast as shown the second example
變量具有不兼容的數(shù)據(jù)類型,則表達(dá)式就需要進(jìn)行顯式轉(zhuǎn)換,如第二個(gè)示例所示。 - Operations that combine an unsigned eight - byte integer and a signed integer require an explicit cast in order to clarify the result format
兼具無符號(hào)八字節(jié)整數(shù)和有符號(hào)整數(shù)的運(yùn)算需要顯式轉(zhuǎn)換才能使結(jié)果格式清楚明了。 - This error occurs if you have code that attempts to convert two types that cannot be implicitly converted , such as in an assignment of a base type to a derived type that is missing an explicit cast
如果您的代碼試圖轉(zhuǎn)換兩種不能隱式轉(zhuǎn)換的類型(例如將基類分配給一個(gè)缺少顯式強(qiáng)制轉(zhuǎn)換的派生類) ,將發(fā)生此錯(cuò)誤。 - Although we will not use an explicit cast in the code for the 5 . 0 benchmark , we do need to include it in the baseline measurement , as it is part of the work required to make the iteration useful
盡管對(duì)于5 . 0的基準(zhǔn)測(cè)試我們不顯式使用強(qiáng)制轉(zhuǎn)換,但是我們需要在基線測(cè)量中加入它,因?yàn)檫@是使遍歷具有實(shí)用性所必需的。